﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZJUploadTool
{
    public class IPCTypeConfig
    {
        static IPCTypeConfig() { }
        public enum IPCType
        {
            GET_DETECT_SN,
            UPLOAD_VEHICLE_INFO,
            UPLOAD_ZJ_REPORT,
            UPLOAD_AJ_REPORT,
            UPLOAD_STATION_INFO,
            UPLOAD_STAGE_PHOTO,
        }
        public static string GetUploadMethod(IPCType ipcType, string szAccessToken)
        {
            string _szMethodUri = "";
            switch (ipcType)
            {
                case IPCType.GET_DETECT_SN:
                    _szMethodUri += "get_data;token=" + szAccessToken;
                    break;
                case IPCType.UPLOAD_VEHICLE_INFO:
                case IPCType.UPLOAD_ZJ_REPORT:
                case IPCType.UPLOAD_AJ_REPORT:
                case IPCType.UPLOAD_STATION_INFO:
                case IPCType.UPLOAD_STAGE_PHOTO:
                    _szMethodUri = "put_data;token=" + szAccessToken;
                    break;
            }
            return _szMethodUri;
        }
    }
}
